﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.WizardAgent
{
    public interface IResponse
    {
        /// <summary>
        /// Response名称，在日志文件中标识用
        /// </summary>
        string ResponseName { get; }

        /// <summary>
        /// 请求返回结果字符串
        /// </summary>
        string ResponseString { get; set; }

        /// <summary>
        /// 错误码
        /// </summary>
        /// <remarks>一般为5位数字</remarks>
        int ErrorCode { get; set; }

        /// <summary>
        /// 错误信息
        /// </summary>
        string ErrorMessage { get; set; }

        /// <summary>
        /// 是否有异常
        /// </summary>
        bool HasError { get; }

        /// <summary>
        /// 提醒码
        /// </summary>
        /// <remarks>一般为5位数字</remarks>
        int WarningCode { get; set; }

        /// <summary>
        /// 提醒信息
        /// </summary>
        string WarningMessage { get; set; }
    }
}
